package com.sn.springboot_netty.ip;

import java.io.IOException;

/**
 * @Author fyy
 * @Description
 * @Date 2020/12/1 17:31
 */
public class CmdUtil {

    public static void main(String[] args) throws IOException {
        String cmd = "netsh    interface    ip    set    addr    \"以太网\"    static 172.22.132.159 255.255.255.0 172.22.132.1";
        Runtime.getRuntime().exec(cmd);
    }

}
